public class Main {
    public static void main(String[] args) {

        Character monkeyKing = new Character("孙悟空");

        Command commandattack = new CommandAttack(monkeyKing);
        Command commandevade = new CommandEvade(monkeyKing);

        Invoker invoker = new Invoker();

        invoker.setCommand(commandattack);
        invoker.excuteCommand();

        invoker.setCommand(commandevade);
        invoker.excuteCommand();



    }
}